]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ctrlAltTab: Fix usage of bind_cairo_surface_property
authorSebastian Keller <skeller@gnome.org>
Thu, 25 Feb 2021 23:00:06 +0000 (00:00 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 8 Mar 2021 09:21:25 +0000 (09:21 +0000)
This updates the use of bind_cairo_surface_property for the changes
from d7cb2eeebc. Now this function returns a StImageContent and not
an Actor like the following code expects, so wrap it in a StIcon.
Also the function lost its size argument.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1718>

js/ui/ctrlAltTab.js

index 46c2a7bf0b5ffeae6361ff92c72174fb897f2f41..fbc7a0f5fc2ac9507b6e128090edbe9bb327e0d0 100644 (file)
@@ -93,9 +93,10 @@ var CtrlAltTabManager = class CtrlAltTabManager {
                     if (app) {
                         icon = app.create_icon_texture(POPUP_APPICON_SIZE);
                     } else {
-                        icon = textureCache.bind_cairo_surface_property(windows[i],
-                                                                        'icon',
-                                                                        POPUP_APPICON_SIZE);
+                        icon = new St.Icon({
+                            gicon: textureCache.bind_cairo_surface_property(windows[i], 'icon'),
+                            icon_size: POPUP_APPICON_SIZE,
+                        });
                     }
                 }